/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.co.pas.business.data;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;
import javax.persistence.Entity;

/**
 *
 * @author alabuschagne
 */
@Entity
public class PaymentMethod extends GenericData implements Serializable
{

    private static final long serialVersionUID = 1L;
    private List<Country> paymentFrom = new LinkedList<Country>();
    private List<Country> paymentTo = new LinkedList<Country>();
    private List<BusinessCurrency> currencies = new LinkedList<BusinessCurrency>();
    @Override
    public int hashCode()
    {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object object)
    {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof PaymentMethod))
        {
            return false;
        }
        PaymentMethod other = (PaymentMethod) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id)))
        {
            return false;
        }
        return true;
    }

}
